<!DOCTYPE html>
<html lang="en">
<head>          
    <meta charset="UTF-8">
    <title>0_0我的登陆页面0_0&nbsp;&nbsp;</title>
	<link rel="shortcut icon" href="image/favicon.icon" >
	<link rel="stylesheet" href="CSS/common2.css" />
	<style>
		body{
			margin:0 auto;
		}
	</style>
</head>
<body>  
<div style="opacity:0.5;position:fixed;left:0;right:0;top:0;bottom:0;background-color:black;"></div>
<div style="border:10px solid rgb(119, 110, 110);position:fixed;left:50%;top:50%;margin-left:-150px;margin-top:-150px;">

	<div style="background-color:#6c5858;width:300px;height:200px;padding:20px;">
		<div>
			<h1 class="mb20">请登陆</h1>
				<div class="group">
					<label  class="tip"><span class="red">*</span>用户名：</label>
					<input id="yhm" require="true" label="用户名" type="text">
				</div>
				
				</br>
				<div class="group">
					<label class="tip"><span class="red">*</span>登录密码：</label>
					<input id="ma" require="true" label="登录密码" min-len="6" name="pwd" type="password">
				</div>

				</br>
				<div id="zz" class="group">
					<label class="tip"></label>
					<input onclick="edit();" value="点击登陆" type="submit">
				</div>
		</div>
	</div>
</div>

<script type="text/javascript" src="jquery-1.8.2.js"></script>
<script>
//判断用户与密码是否为空
$("input[type=submit]").click(function(){
	var y = $("#yhm");
	var h = $("#ma");
	if ($.trim(y.val()) == ""){
		alert("yonghu");
	}
	else
	if ($.trim(h.val()) == ""){
	alert("mimama");
	}
});
//跑马灯如下
function Go(){
	var content = document.title;
	var firstChar = content.charAt(0)
	var sub = content.substring(1,content.length)
	document.title = sub + firstChar;
}
setInterval('Go()',1000);
</script>

</body>
</html>
	                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               